package cn.tedu.springbootmybatis.ex;

import cn.tedu.springbootmybatis.restful.ResponseCode;

/**
 * 业务异常
 *
 * @author java@tedu.cn
 * @version 0.0.1
 */
public class ServiceException extends RuntimeException {

   private ResponseCode responseCode;

    public ResponseCode getResponseCode() {
        return responseCode;
    }

    public ServiceException(ResponseCode responseCode, String message) {
        super(message);
        this.responseCode = responseCode;
    }


}
